<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
    x:Class="OpenLS.UI.RecentlyUsedDocumentResources"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:oui="clr-namespace:OpenLS.UI;assembly=OpenLS.UI"
    xmlns:os="clr-namespace:OpenLS.UI"
    >
  <Style TargetType="{x:Type Button}">
    <Setter Property="Background" Value="Transparent"/>
    <Setter Property="Foreground" Value="{DynamicResource {x:Static os:OfficeBrushes.TextForegroundKey}}"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}" >
          <Border Background ="{TemplateBinding Background}" Padding="{TemplateBinding Padding}">
            <ContentPresenter/>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
    <Style.Triggers>
      <Trigger Property="IsMouseOver" Value="True">
        <Setter Property ="Background" Value="{DynamicResource {x:Static oui:OfficeBrushes.ButtonHoverBackgroundKey}}"/>
      </Trigger>
    </Style.Triggers>
  </Style>
  <DataTemplate DataType="{x:Type os:RecentlyUsedDocument}">
    <Button Content="{Binding Name}" ToolTip="{Binding FullName}" Command="{x:Static ApplicationCommands.Open}" Padding="3" 
            CommandParameter="{Binding FullName}" os:RibbonElement.IsIconVisible="False" >

    </Button>
  </DataTemplate>
    
</ResourceDictionary>